
 <script language="javascript">
 changeWaiting(0);
 var cusfrmreportproduct_cal1 = CreateCalObject('cusfrmreportproduct_fromdate', 'cusfrmreportproduct_imgCal1');
var cusfrmreportproduct_cal2 = CreateCalObject('cusfrmreportproduct_todate', 'cusfrmreportproduct_imgCal2');
 $(document).ready(function () {
     initDivleft();
     initForm('cusfrmreportproduct_tblinfo');  
     
 });

function cusfrmreportproduct_createReport(){
    if(!checkDate('cusfrmreportproduct_fromdate','cusfrmreportproduct_todate',30)){
        return false;
    }
 fromdate = ConvertoDateEN($('#cusfrmreportproduct_fromdate').val());
 todate = ConvertoDateEN($('#cusfrmreportproduct_todate').val());
 var reportType = $("[NAME='cusfrmreportproduct_type']:checked").val(); 
 changeWaiting(0);
 xajax_cusfrmreportproduct_load(fromdate,todate,reportType);  
}

$('#cusfrmreportproduct_fromdate').val(GetCurrentDateTime(0,0,false,0)) ;
$('#cusfrmreportproduct_todate').val(GetCurrentDateTime(0,0,false,0)) ;

//xajax_common_loadroomall('cusfrmreportproduct','');
changeWaiting(0);
cusfrmreportproduct_createReport();


 </script>

<body>
<div class="divmain">
<table width="100%" id="cusfrmreportproduct_tblinfo" class="tblInfo">
<tr>
<td valign="top" class="width25">
<div class="divLeft">  
<table class="info" id="cusfrmreportproduct_tblcondition">
<tr >
<td  class="width100 clssearch" id="cusfrmreportproduct_tdcondsearch">

<table class="width100">


 
<tr><td class="width30 lblRequired">Thời gian</td>
<td><input type="text" value="" class="datereport txtRequired" onblur="formatddmmyyyy(this)" maxlength="10"  id="cusfrmreportproduct_fromdate"/><a href="javascript:cusfrmreportproduct_cal1.popup();">
<img src="adagps.com/images/cal/cal2.png" id="cusfrmreportproduct_imgCal1"  class="datepicker dpkstart" ></a>
-
<input type="text" class="datereport" onblur="formatddmmyyyy(this)" maxlength="10"  value=""  id="cusfrmreportproduct_todate" /><a href="javascript:cusfrmreportproduct_cal2.popup();">
<img src="adagps.com/images/cal/cal2.png" id="cusfrmreportproduct_imgCal2"  class="datepicker dpkend" ></a>  </td></tr>
<tr><td rowspan="2">Loại sản phẩm</td>
<td>Trong danh mục <input type="radio" checked="checked" name="cusfrmreportproduct_type" id="cusfrmreportproduct_type_1" value="1"/>  </td>
</tr>
<tr>
<td>Ngoài danh mục <input type="radio" name="cusfrmreportproduct_type" id="cusfrmreportproduct_type_2" value="2"/>  </td>
</tr>
 
</table>
        <div class="divactionbuton">

        <button id="cusfrmreportproduct_create" class="bntreport" onclick="cusfrmreportproduct_createReport();" type="button"> Xem </button>
        </div>

</td>
</tr>
<tr>
<td>

<!--<button id="cusfrmreportproduct_create" class="btnreport" onclick="cusfrmreportproduct_createReport();" type="button"> Xem </button> -->
</td>
</tr>
</table>   
</div>
</td>
<td class="clsmiddle"></td>

<td width="80%" height="400" valign="top">
<div class="divGrid" id="cusfrmreportproduct_divGrid">

</div></td>
<td class="clsend"></td>
</tr>
</table>
</div>

</body>

